package com.honey.solr;

import java.util.Properties;

import com.honey.core.types.FullyQualifiedJavaType;

import com.honey.core.types.JDKFullyQualifiedJavaType;

public class SchemaField {
	
	private String name ;
	
	private String comment ;
	
	private SolrFullyQualifiedJavaType type = null;
	
	private boolean indexed = false;
	
	private boolean stored = true;
	
	private boolean required = true ;
	
	private boolean isUniqueKey ;
	
	private Properties properties ;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public SolrFullyQualifiedJavaType getType() {
		return type;
	}

	public void setType(SolrFullyQualifiedJavaType type) {
		this.type = type; 
	}
	
	public boolean isIndexed() {
		return indexed;
	}

	public void setIndexed(boolean indexed) {
		this.indexed = indexed;
	}

	public boolean isStored() {
		return stored;
	}

	public void setStored(boolean stored) {
		this.stored = stored;
	}

	public boolean isRequired() {
		return required;
	}

	public void setRequired(boolean required) {
		this.required = required;
	}

	public Properties getProperties() {
		return properties;
	}

	public void setProperties(Properties properties) {
		this.properties = properties;
	}

	public boolean isUniqueKey() {
		return isUniqueKey;
	}
	
	public void setUniqueKey(boolean isUniqueKey) {
		this.isUniqueKey = isUniqueKey;
	}
	
	/**
	 * @return the comment
	 */
	public final String getComment() {
		return comment;
	}
	
	/**
	 * @param comment the comment to set
	 */
	public final void setComment(String comment) {
		this.comment = comment;
	}
}
